package com.ktgj.customer.api.domain;

import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 银行卡信息对象 bank_card
 * 
 * @author ruoyi
 * @date 2021-09-01
 */
public class BankCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long bankCardId;

    /** 持卡人 */
    @Excel(name = "持卡人")
    private String cardholder;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNumber;

    /** 卡类型 */
    @Excel(name = "卡类型")
    private String cardType;

    /** 预留手机号 */
    @Excel(name = "预留手机号")
    private String obligatePhone;

    /** 会员id */
    @Excel(name = "会员id")
    private Long memberId;

    /** 信用卡安全码 */
    @Excel(name = "信用卡安全码")
    private Long cvv2;

    /** 银行名称 */
    @Excel(name = "银行名称")
    private String bankName;

    /** 信用失效时间 */
    @Excel(name = "信用失效时间", width = 30, dateFormat = "yyyy-MM")
    private String creditCardTime;

    /** 银行Logo关联Id */
    @Excel(name = "银行Logo关联Id")
    private Long bankId;

    /**
     * 临时储存银行Logo
     * */
    public String bankLogoName;

    /**
     * 易宝专用银行代码
     * */
    public String bankCode;

    public Long getBankId() {
        return bankId;
    }

    public void setBankId(Long bankId) {
        this.bankId = bankId;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getCreditCardTime() {
        return creditCardTime;
    }

    public void setCreditCardTime(String creditCardTime) {
        this.creditCardTime = creditCardTime;
    }

    public Long getCvv2() {
        return cvv2;
    }

    public void setCvv2(Long cvv2) {
        this.cvv2 = cvv2;
    }

    public Long getBankCardId() {
        return bankCardId;
    }

    public void setBankCardId(Long bankCardId) {
        this.bankCardId = bankCardId;
    }

    public void setCardholder(String cardholder)
    {
        this.cardholder = cardholder;
    }

    public String getCardholder() 
    {
        return cardholder;
    }
    public void setCardNumber(String cardNumber) 
    {
        this.cardNumber = cardNumber;
    }

    public String getCardNumber() 
    {
        return cardNumber;
    }
    public void setCardType(String cardType) 
    {
        this.cardType = cardType;
    }

    public String getCardType() 
    {
        return cardType;
    }
    public void setObligatePhone(String obligatePhone) 
    {
        this.obligatePhone = obligatePhone;
    }

    public String getObligatePhone() 
    {
        return obligatePhone;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bankCardId", getBankCardId())
            .append("cardholder", getCardholder())
            .append("cardNumber", getCardNumber())
            .append("cardType", getCardType())
            .append("obligatePhone", getObligatePhone())
            .append("memberId", getMemberId())
            .append("cvv2", getCvv2())
            .toString();
    }
}
